@extends('Admin.layout.blank')
@section('body')

<section class="Hui-article-box">
	<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 积分管理 <span class="c-gray en">&gt;</span> 积分规则 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>

	<article class="cl pd-20">

		@if (session('message'))
		<div class="Huialert Huialert-error" style="text-align:center">
			<i class="Hui-iconfont">&#xe6a6;</i>{{ session('message') }}
		</div>
		@endif

		@if (count($errors) > 0)
	    	<div class="alert alert-danger" style="text-align:center">
	        	<ul>
	            	@foreach ($errors->all() as $error)
	                	<li>{{ $error }}</li>
	            	@endforeach
	        	</ul>
	    	</div>
		@endif

		<form action="{{ route('SetSocres') }}" method="post" class="form form-horizontal" id="form-ads-add">
			{{ csrf_field() }}
			<div class="row cl">
				<div class="row cl">
					<label class="form-label col-xs-9 col-sm-9">
						<span class="c-red" style="width:60%">在此设置积分与订单抵扣金额的关系，只能填写整数,取值范围 0 - 0.10之间。比如1积分=0.01元，则写1</span>
					</label>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-4">
						<span class="c-red">*</span>1 个积分 = 
					</label>
					<div class="formControls col-xs-4 col-sm-4">
						<input name="shop-score-rule" type="text" id="website-title" placeholder="只能填写小数,且最多保留2位小数点" value="" class="input-text" style="width:90%" min="0">
					</div>
						<label class="formControls col-xs-3 col-sm-3">元</label>
						<label name="error" class="form-label col-xs-3 col-sm-3 c-red" style="color:red"></label>
				</div>
				<div class="row cl">
					<div class="col-xs-8 col-sm- col-xs-offset-4 col-sm-offset-4">
						<input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;保存&nbsp;&nbsp;">
					</div>
				</div>
			</div>
		</form>
	</article>
</section>
@endsection

@section('footer-js')
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="{{ asset('AdminPublic/lib/My97DatePicker/4.8/WdatePicker.js')}}"></script>

<script type="text/javascript" src="{{ asset('AdminPublic/lib/laypage/1.2/laypage.js')}}"></script>
<script type="text/javascript" src="{{ asset('AdminPublic/lib/zTree/v3/js/jquery.ztree.all-3.5.min.js')}}"></script>
<script type="text/javascript">

</script>
<!--/请在上方写此页面业务相关的脚本-->
@endsection